package com.multithreading.chart1.createMulitithreading;

/**
 * @program: java-multithreading
 * @description: 实现runable接口方式创建
 * @author: 陈庆彪
 * @create: 2020-06-20 09:43
 **/
public class RunAableTest {
    public static class RunableTask implements Runnable {
        @Override
        public void run() {
            System.out.println("我也是一个子线程！");
        }
    }

    public static void main(String[] args) throws InterruptedException {
        RunableTask task = new RunableTask();
        new Thread(task).start();
        new Thread(task).start();
    }
}
